#include "ProcessPool.hpp"

int main(int argc,char* argv[])
{
    if (argc != 2){
        std::cout << "use ./process + processnum" << std::endl;
        exit(1);
    }
    int num = std::stoi(argv[1]);
    ProcessPool p(num);
    p.InitProcessPool();
    // p.DebugPrint();
    p.Dispacher();
    p.Wait();
    return 0;
}